package com.arpa.wms.domain.vo;

import com.arpa.wms.domain.dto.DiyReportFieldCalObj;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 自定义报表字段DTO
 * </p>
 *
 * @author wangyujie
 * @since 2020-01-14
 */
@Data
@ApiModel(value="DiyReportFieldVO对象", description="自定义报表字段")
public class DiyReportFieldVO implements Serializable {


    @ApiModelProperty(value = "唯一code")
    private String code;

    @ApiModelProperty(value = "组织机构编码")
    private String branchCode;

    @ApiModelProperty(value = "自定义报表code")
    private String reportCode;

    @ApiModelProperty(value = "字段")
    private String field;

    @ApiModelProperty(value = "字段展示名称")
    private String fieldName;

    @ApiModelProperty(value = "字段类型: int数字,str文本,select字典值,date日期,dicimal金额")
    private String type;

    @ApiModelProperty(value = "数据来源:diy 自定义,cal计算得出")
    private String source;

    @ApiModelProperty(value = "排序:越大越往后")
    private Integer sort;

    @ApiModelProperty(value = "数据库字段")
    private String dbField;

    @ApiModelProperty(value = "计算对象集合")
    private List<DiyReportFieldCalObj> calObjList;

    @ApiModelProperty(value = "计算规则json")
    private String calJson;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "总数")
    private Long total;
}
